package com.yjk.controller;


import com.yjk.entity.Admin;
import com.yjk.service.IAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yjk
 * @since 2022-04-05
 */
@RestController
@RequestMapping("/admin")
public class AdminController {
    @Autowired
    private IAdminService as;
    @GetMapping("/")
    public List<Admin> selectAll(){
        return as.list();
    }

}

